package com.sdy.healthcode.h5.vo;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

@Data
@ApiModel(value = "证件接口返回对象")
public class IdCardOcrObj implements Serializable {
    private static final long serialVersionUID = 1L;
    
    private Integer result;
    private List<IdCardOcrResp> response;
    
    @Data
    @ApiModel(value = "证件详情")
    public static class IdCardOcrResp implements Serializable {
        private static final long serialVersionUID = 1L;
        
        @ApiModelProperty(value = "地址")
        private String address;
        
        @ApiModelProperty(value = "证件号码")
        private String idnumber;
        
        @ApiModelProperty(value = "发证单位")
        private String issuer;
        
        @ApiModelProperty(value = "姓名")
        private String name;
        
        @ApiModelProperty(value = "性别")
        private String gender;
        
        @ApiModelProperty(value = "民族")
        private String nationality;
        
        @ApiModelProperty(value = "出生日期")
        private String birthdate;
        
        @ApiModelProperty(value = "有效期起")
        @JsonProperty("effective_date")
        private String effectiveDate;
        
        @ApiModelProperty(value = "有效期止")
        @JsonProperty("expire_date")
        private String expireDate;
    }
}
